{% extends 'base_course.html' %}

{% block gcb_page_info %}
  if ('gcbSetPageInfo' in window) {
    gcbSetPageInfo({
      'page_type': 'test_confirmation',
      'unit_id': '{{ unit_id }}',
    });
  }
{% endblock %}

{% block top_content %}
{% endblock %}

{% block main_content %}

<div class="gcb-cols">
  <div class="gcb-col-1">
  </div>
  <div class="gcb-col-7 gcb-aside gcb-button-box">

    <p class="gcb-top-content" role="heading">
      {# I18N: Shown after the student has submitted an assessment. #}
      {{ gettext('Thank you for taking the %(assessment_name)s. Your score for this assessment
      is %(score)s%%. If you wish, you may return to the assessment and take it again.' % {'assessment_name': assessment_name|lower, 'score': score}) }}
    </p>

    <br>

    {% if 'assessment_confirmations' in course_info and is_last_assessment and overall_score != None and result %}
      <!-- Displays result-specific text for the final assessment. -->
      <p class="gcb-top-content">
        {{course_info.assessment_confirmations['result_text'][result] % overall_score}}
      </p>
    {% endif %}

    <p>
      <a class="gcb-button" href="course">
        {# I18N: Shown after the student has submitted an assessment. This button allows the student to navigate back to the main course page. #}
        {{ gettext('Back to Course page') }}
      </a>
    </p>

  </div>
</div>

{% endblock %}
